package ooday04;

public class Teacher extends Person{
    double salarry;
    Teacher(String name,int age,String address,double salarry){
        super(name,age,address);
        this.salarry = salarry;
    }
    void sayHI(){
        System.out.println(
                "大家好，我叫"+name+",今年"+age+"岁了，家住"+address+"工资为:"+salarry);
    }

}
